package com.ygqh.baby.mapper;

import com.ygqh.baby.po.YgVoteHelp;
import com.ygqh.baby.po.YgVoteHelpExample;
import com.ygqh.baby.ao.QueryInfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * @author Ss
 */
public interface YgVoteHelpMapper {

	int countByExample(YgVoteHelpExample example);

	int deleteByExample(YgVoteHelpExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgVoteHelp record);

	int insertSelective(YgVoteHelp record);

	List<YgVoteHelp> selectByExample(YgVoteHelpExample example);

	YgVoteHelp selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgVoteHelp record, @Param("example") YgVoteHelpExample example);

	int updateByExample(@Param("record") YgVoteHelp record, @Param("example") YgVoteHelpExample example);

	int updateByPrimaryKeySelective(YgVoteHelp record);

	int updateByPrimaryKey(YgVoteHelp record);

	int countSuper(@Param("q") String q);

	List<YgVoteHelp> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q);

	YgVoteHelp selectLast(@Param("voteBatchCode") String voteBatchCode, @Param("openId") String openId);
}



